package com.wocao.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wocao.entity.SysDictData;
import com.wocao.entity.SysDictTypeAndDateCheck;
import com.wocao.entity.SysOperLog;
import com.wocao.service.SysOperLogService;
import com.wocao.mapper.SysOperLogMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
*
*/
@Service
public class SysOperLogServiceImpl extends ServiceImpl<SysOperLogMapper, SysOperLog> implements SysOperLogService{

    @Autowired
    private SysOperLogMapper sysOperLogMapper;


    @Override
    public List<String> businessTypeAll() {
        return sysOperLogMapper.selectBusinessTypeAll();
    }

    @Override
    public Page<SysOperLog> getPage(Page<SysOperLog> page, SysDictTypeAndDateCheck c) {
        return sysOperLogMapper.getPage(page,c.getTitle(),c.getOperName(),c.getBusinessType(),c.getStatus()
                ,c.getStartDate(),c.getEndDate());
    }
}
